﻿@model Vms.Web.Models.CONTENT_TXT
@Html.Hidden("Txt_ID", Model.Id)
<div id="view2_txt1" class="content-form">
                          
    <table>
        <tr>
            <td>
                @Html.LabelFor(model => model.Txt)
            </td>
            <td colspan=3>
                @Html.TextBoxFor(model => model.Txt)                    
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(model => model.Txt_x)
            </td>
            <td colspan=3>
                @Html.TextBoxFor(model => model.Txt_x)                    
            </td>
            <td style="text-align:right; padding-right:5px;">
                Font name
            </td>
            <td>
                @Html.DropDownListFor(model=>model.FontName, (List<SelectListItem>)ViewBag.FontNames)
                                        
            </td>

        </tr>
                               
            <tr>
            <td>
                @Html.LabelFor(model => model.Txt_y)
            </td>
            <td colspan=3>
                @Html.TextBoxFor(model => model.Txt_y)                   
            </td>
            <td>
                @Html.LabelFor(model => model.FontSize)
            </td>
            <td colspan=3>
                @Html.TextBoxFor(model => model.FontSize)                    
            </td>
        </tr>
                             
            <tr>
            <td>
                @Html.LabelFor(model => model.Txt_Width)
            </td>
            <td colspan="3">
                @Html.TextBoxFor(model => model.Txt_Width)                    
            </td>
            <td style="text-align:right; padding-right:5px;">
                Bold
            </td>
            <td>
            @if (Model != null && Model.Bold != null && (bool)Model.Bold)
            {
                <input name="Bold" type="checkbox" id="Bold" checked="checked" />
            }
            else
            {
                <input name="Bold" type="checkbox" id="Bold" />
            }
                 @*@Html.CheckBox("Bold", (Model != null && Model.Bold != null && (bool)Model.Bold))*@                                
            </td>
        </tr>
                                
        <tr>
            <td>
                @Html.LabelFor(model => model.Txt_Height)
            </td>
            <td colspan="3">
                @Html.TextBoxFor(model => model.Txt_Height)                   
            </td>
            <td style="text-align:right; padding-right:5px;">
                Font color
            </td>
            <td>
                 @Html.DropDownListFor(model => model.FontColor, (List<SelectListItem>)ViewBag.FontColors)
                                        
            </td>
        </tr>

        <tr>
            <td>
                <label class="control-label">Method</label>
            </td>
            <td >
                @Html.DropDownList("Txt_DisplayMode", new SelectList(ViewBag.DisplayMode, "Value", "Text", Model.DisplayMode))   

            </td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td>
                <label class="control-label" for="input01">Run Speed</label>
            </td>
            <td>
                 @Html.DropDownList("Txt_RunSpeed", new SelectList(ViewBag.Speeds, "Value", "Text", Model.RunSpeed))    
            </td>
            <td></td>
            <td></td>
        </tr>
    </table>
</div><!-- End div#view2_txt1  -->
                        